<h1>Clans List</h1>

<table>
  <thead>
    <tr>
      <th>Tag</th>
      <th>Name</th>
      <th>Country</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($clans as $clan): ?>
    <tr>      
      <td><a href="<?php echo url_for('clan/show?id='.$clan->getId()) ?>"><?php echo $clan->getTag() ?></a></td>
      <td><?php echo $clan->getName() ?></td>
      <td><?php echo $clan->getCountry() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('clan/new') ?>">New</a>
